package com.etoak.service.impl;

import com.etoak.entity.Label;
import com.etoak.mapper.LabelMapper;
import com.etoak.service.LabelService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hnb
 * @version 1.0
 * @Description:
 * @date 2022/5/10 下午5:28
 */
@Service
public class LabelImpl implements LabelService {
    @Autowired
    LabelMapper labelMapper;

    @Override
    public int add(Label label) {
        return labelMapper.insert(label);
    }

    @Override
    public Label query(Label label) {
        return labelMapper.query(label);
    }

    @Override
    public int deletelabel(String[] ids) {
        return labelMapper.deletelabel(ids);
    }

    @Override
    public int updateLabel(Label label) {
        return labelMapper.updateLabel(label);
    }

    @Override
    public List<Label> queryList(Label label) {
        return labelMapper.queryList(label);
    }

}
